﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using ILX.TaskProcess;
namespace RecruitmentProcess
{
    public sealed partial class RecruitmentWorkflow
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            this.GoToCreateTask = new System.Workflow.Activities.SetStateActivity();
            this.GoToCompleteTheTask = new System.Workflow.Activities.SetStateActivity();
            this.setState1 = new Microsoft.SharePoint.WorkflowActions.SetState();
            this.AssignTask = new System.Workflow.Activities.IfElseBranchActivity();
            this.AllTaskCompleted = new System.Workflow.Activities.IfElseBranchActivity();
            this.logToHistoryListActivity3 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.completeTask3 = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.setStateActivityRejected = new System.Workflow.Activities.SetStateActivity();
            this.onTaskChangedRejected = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.createTaskRejected = new Microsoft.SharePoint.WorkflowActions.CreateTask();
            this.AssignNewTask = new System.Workflow.Activities.IfElseActivity();
            this.ValidateTask = new System.Workflow.Activities.CodeActivity();
            this.setStateActivityInitial = new System.Workflow.Activities.SetStateActivity();
            this.onWorkflowActivatedInitial = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            this.ManagerReviewFinalize = new System.Workflow.Activities.StateFinalizationActivity();
            this.eventDrivenActivityRejected = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivityRejected = new System.Workflow.Activities.StateInitializationActivity();
            this.stateInitializationInitialClearanceActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivityInitial = new System.Workflow.Activities.EventDrivenActivity();
            this.Completed = new System.Workflow.Activities.StateActivity();
            this.TaskProcessActivity = new System.Workflow.Activities.StateActivity();
            this.TaskHandler = new System.Workflow.Activities.StateActivity();
            this.InterviewApplicationReceived = new System.Workflow.Activities.StateActivity();
            // 
            // GoToCreateTask
            // 
            this.GoToCreateTask.Name = "GoToCreateTask";
            this.GoToCreateTask.TargetStateName = "TaskProcessActivity";
            // 
            // GoToCompleteTheTask
            // 
            this.GoToCompleteTheTask.Name = "GoToCompleteTheTask";
            this.GoToCompleteTheTask.TargetStateName = "Completed";
            // 
            // setState1
            // 
            correlationtoken1.Name = "InitialToken";
            correlationtoken1.OwnerActivityName = "RecruitmentWorkflow";
            this.setState1.CorrelationToken = correlationtoken1;
            this.setState1.Name = "setState1";
            activitybind1.Name = "RecruitmentWorkflow";
            activitybind1.Path = "currentWorkflowStatus";
            this.setState1.SetBinding(Microsoft.SharePoint.WorkflowActions.SetState.StateProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // AssignTask
            // 
            this.AssignTask.Activities.Add(this.GoToCreateTask);
            this.AssignTask.Name = "AssignTask";
            // 
            // AllTaskCompleted
            // 
            this.AllTaskCompleted.Activities.Add(this.setState1);
            this.AllTaskCompleted.Activities.Add(this.GoToCompleteTheTask);
            ruleconditionreference1.ConditionName = "AllTaskCompleted";
            this.AllTaskCompleted.Condition = ruleconditionreference1;
            this.AllTaskCompleted.Name = "AllTaskCompleted";
            // 
            // logToHistoryListActivity3
            // 
            this.logToHistoryListActivity3.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity3.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind2.Name = "RecruitmentWorkflow";
            activitybind2.Path = "logHistoryDescription";
            this.logToHistoryListActivity3.HistoryOutcome = "";
            this.logToHistoryListActivity3.Name = "logToHistoryListActivity3";
            this.logToHistoryListActivity3.OtherData = "";
            this.logToHistoryListActivity3.UserId = -1;
            this.logToHistoryListActivity3.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // completeTask3
            // 
            correlationtoken2.Name = "MgrReviewRejectedToken";
            correlationtoken2.OwnerActivityName = "TaskProcessActivity";
            this.completeTask3.CorrelationToken = correlationtoken2;
            this.completeTask3.Name = "completeTask3";
            activitybind3.Name = "RecruitmentWorkflow";
            activitybind3.Path = "MgrReviewForRejectedTaskId";
            activitybind4.Name = "RecruitmentWorkflow";
            activitybind4.Path = "TaskOutcomeStatus";
            this.completeTask3.MethodInvoking += new System.EventHandler(this.completeTask3_MethodInvoking);
            this.completeTask3.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.completeTask3.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // setStateActivityRejected
            // 
            this.setStateActivityRejected.Name = "setStateActivityRejected";
            this.setStateActivityRejected.TargetStateName = "TaskHandler";
            // 
            // onTaskChangedRejected
            // 
            activitybind5.Name = "RecruitmentWorkflow";
            activitybind5.Path = "onTaskChangedRejectedAfterProperties";
            activitybind6.Name = "RecruitmentWorkflow";
            activitybind6.Path = "onTaskChangedRejectedBeforeProperties";
            this.onTaskChangedRejected.CorrelationToken = correlationtoken2;
            this.onTaskChangedRejected.Executor = null;
            this.onTaskChangedRejected.Name = "onTaskChangedRejected";
            activitybind7.Name = "RecruitmentWorkflow";
            activitybind7.Path = "MgrReviewForRejectedTaskId";
            this.onTaskChangedRejected.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChangedRejected_Invoked);
            this.onTaskChangedRejected.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.onTaskChangedRejected.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.onTaskChangedRejected.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // logToHistoryListActivity1
            // 
            this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind8.Name = "RecruitmentWorkflow";
            activitybind8.Path = "logHistoryDescription";
            this.logToHistoryListActivity1.HistoryOutcome = "";
            this.logToHistoryListActivity1.Name = "logToHistoryListActivity1";
            this.logToHistoryListActivity1.OtherData = "";
            this.logToHistoryListActivity1.UserId = -1;
            this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            // 
            // createTaskRejected
            // 
            this.createTaskRejected.CorrelationToken = correlationtoken2;
            this.createTaskRejected.ListItemId = -1;
            this.createTaskRejected.Name = "createTaskRejected";
            this.createTaskRejected.SpecialPermissions = null;
            activitybind9.Name = "RecruitmentWorkflow";
            activitybind9.Path = "MgrReviewForRejectedTaskId";
            activitybind10.Name = "RecruitmentWorkflow";
            activitybind10.Path = "createTaskRejectedTaskProperties";
            this.createTaskRejected.MethodInvoking += new System.EventHandler(this.createTaskRejected_MethodInvoking);
            this.createTaskRejected.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.createTaskRejected.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            // 
            // AssignNewTask
            // 
            this.AssignNewTask.Activities.Add(this.AllTaskCompleted);
            this.AssignNewTask.Activities.Add(this.AssignTask);
            this.AssignNewTask.Name = "AssignNewTask";
            // 
            // ValidateTask
            // 
            this.ValidateTask.Name = "ValidateTask";
            this.ValidateTask.ExecuteCode += new System.EventHandler(this.TaskHandler_ValidateTask);
            // 
            // setStateActivityInitial
            // 
            this.setStateActivityInitial.Name = "setStateActivityInitial";
            this.setStateActivityInitial.TargetStateName = "TaskHandler";
            // 
            // onWorkflowActivatedInitial
            // 
            this.onWorkflowActivatedInitial.CorrelationToken = correlationtoken1;
            this.onWorkflowActivatedInitial.EventName = "OnWorkflowActivated";
            this.onWorkflowActivatedInitial.Name = "onWorkflowActivatedInitial";
            activitybind11.Name = "RecruitmentWorkflow";
            activitybind11.Path = "workflowProperties";
            this.onWorkflowActivatedInitial.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivatedInitial_Invoked);
            this.onWorkflowActivatedInitial.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            // 
            // ManagerReviewFinalize
            // 
            this.ManagerReviewFinalize.Activities.Add(this.completeTask3);
            this.ManagerReviewFinalize.Activities.Add(this.logToHistoryListActivity3);
            this.ManagerReviewFinalize.Name = "ManagerReviewFinalize";
            // 
            // eventDrivenActivityRejected
            // 
            this.eventDrivenActivityRejected.Activities.Add(this.onTaskChangedRejected);
            this.eventDrivenActivityRejected.Activities.Add(this.setStateActivityRejected);
            this.eventDrivenActivityRejected.Name = "eventDrivenActivityRejected";
            // 
            // stateInitializationActivityRejected
            // 
            this.stateInitializationActivityRejected.Activities.Add(this.createTaskRejected);
            this.stateInitializationActivityRejected.Activities.Add(this.logToHistoryListActivity1);
            this.stateInitializationActivityRejected.Name = "stateInitializationActivityRejected";
            // 
            // stateInitializationInitialClearanceActivity
            // 
            this.stateInitializationInitialClearanceActivity.Activities.Add(this.ValidateTask);
            this.stateInitializationInitialClearanceActivity.Activities.Add(this.AssignNewTask);
            this.stateInitializationInitialClearanceActivity.Name = "stateInitializationInitialClearanceActivity";
            // 
            // eventDrivenActivityInitial
            // 
            this.eventDrivenActivityInitial.Activities.Add(this.onWorkflowActivatedInitial);
            this.eventDrivenActivityInitial.Activities.Add(this.setStateActivityInitial);
            this.eventDrivenActivityInitial.Name = "eventDrivenActivityInitial";
            // 
            // Completed
            // 
            this.Completed.Name = "Completed";
            // 
            // TaskProcessActivity
            // 
            this.TaskProcessActivity.Activities.Add(this.stateInitializationActivityRejected);
            this.TaskProcessActivity.Activities.Add(this.eventDrivenActivityRejected);
            this.TaskProcessActivity.Activities.Add(this.ManagerReviewFinalize);
            this.TaskProcessActivity.Name = "TaskProcessActivity";
            // 
            // TaskHandler
            // 
            this.TaskHandler.Activities.Add(this.stateInitializationInitialClearanceActivity);
            this.TaskHandler.Name = "TaskHandler";
            // 
            // InterviewApplicationReceived
            // 
            this.InterviewApplicationReceived.Activities.Add(this.eventDrivenActivityInitial);
            this.InterviewApplicationReceived.Name = "InterviewApplicationReceived";
            // 
            // RecruitmentWorkflow
            // 
            this.Activities.Add(this.InterviewApplicationReceived);
            this.Activities.Add(this.TaskHandler);
            this.Activities.Add(this.TaskProcessActivity);
            this.Activities.Add(this.Completed);
            this.CompletedStateName = "Completed";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "InterviewApplicationReceived";
            this.Name = "RecruitmentWorkflow";
            this.CanModifyActivities = false;

        }

        #endregion

        private Microsoft.SharePoint.WorkflowActions.SetState setState1;

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity1;

        private SetStateActivity GoToCreateTask;

        private SetStateActivity GoToCompleteTheTask;

        private IfElseBranchActivity AssignTask;

        private IfElseBranchActivity AllTaskCompleted;

        private IfElseActivity AssignNewTask;

        private CodeActivity ValidateTask;

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity3;

        private Microsoft.SharePoint.WorkflowActions.CompleteTask completeTask3;

        private StateFinalizationActivity ManagerReviewFinalize;

        private SetStateActivity setStateActivityRejected;

        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged onTaskChangedRejected;

        private Microsoft.SharePoint.WorkflowActions.CreateTask createTaskRejected;

        private EventDrivenActivity eventDrivenActivityRejected;

        private StateInitializationActivity stateInitializationActivityRejected;

        private EventDrivenActivity eventDrivenActivityInitial;

        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated onWorkflowActivatedInitial;

        private SetStateActivity setStateActivityInitial;

        private StateInitializationActivity stateInitializationInitialClearanceActivity;

        private StateActivity Completed;

        private StateActivity TaskProcessActivity;

        private StateActivity TaskHandler;

        private StateActivity InterviewApplicationReceived;





















































































































































































































































    }
}
